package com.tiancheng.trade.commom.core.exception;


import com.tiancheng.trade.commom.core.exception.error.AuthErrorInfoEnum;
import com.tiancheng.trade.commom.core.exception.error.IErrorInfo;

public class AuthorizationException extends BaseException {

    private static final long serialVersionUID = 1L;

    public AuthorizationException(Integer code, String message) {
        super(code, message);
    }

    public AuthorizationException(String message) {
        super(AuthErrorInfoEnum.AUTH_ERROR.getCode(), message);
    }

    public AuthorizationException(AuthErrorInfoEnum errorInfoEnum) {
        super(errorInfoEnum);
    }

    public AuthorizationException(IErrorInfo errorInfo, Object[] args, String message) {
        super(errorInfo, args, message);
    }

    public AuthorizationException(IErrorInfo errorInfo, Object[] args, String message, Throwable cause) {
        super(errorInfo, args, message, cause);
    }
}
